<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>抽奖页面</title>
</head>
<body>
    <button id="drawButton">点击抽奖</button>
    <div id="showJP"></div>

    <script>
        const jiangpin = ['iPhone 12', 'iPad Pro', 'Apple Watch', 'AirPods', 'Amazon Gift Card'];
        const drawButton = document.getElementById('drawButton');
        const showJP = document.getElementById('showJP');

        drawButton.addEventListener('click', function() {
            const randomIndex = Math.floor(Math.random() * jiangpin.length);
            const randomJP = jiangpin[randomIndex];
            showJP.textContent = `恭喜您抽中了：${randomJP}`;
        });
    </script>
</body>
</html>